execute if entity @s[tag=fisland_craftingtable] at @s run data modify entity @e[type=item,nbt={Item:{id:"minecraft:barrel",Count:1b}},limit=1,distance=..1] Item set value {id:"carrot_on_a_stick",Count:1b,tag:{tag:{id:"fisland:crafting_table"},CustomModelData:580001,display:{Name:'[{"text":"空岛合成台","italic":false}]'}}}
execute if entity @s[tag=fisland_hand_grinder] at @s run data modify entity @e[type=item,nbt={Item:{id:"minecraft:barrel",Count:1b}},limit=1,distance=..1] Item set value {id:"carrot_on_a_stick",Count:1b,tag:{tag:{id:"fisland:hand_grinder"},CustomModelData:580003,display:{Name:'[{"text":"手摇粉碎机","italic":false}]'}}}
kill @e[type=item,nbt={Item:{tag:{tag:{id:"fisland:index"}}}}]
kill @s